package com.runjian.rundo.iot.agent.common.context;

import com.runjian.rundo.iot.agent.common.message.EncodedMessage;
import com.runjian.rundo.iot.agent.common.session.Session;

/**
 * 设备消息解码上下文
 *
 * @author LiGang
 */
public class DeviceMessageDecodeContext {

    /**
     * 编码消息
     */
    private final EncodedMessage encodedMessage;

    /**
     * 数据session
     */
    private final Session deviceSession;

    public DeviceMessageDecodeContext(EncodedMessage encodedMessage, Session deviceSession) {
        this.encodedMessage = encodedMessage;
        this.deviceSession = deviceSession;
    }

    public EncodedMessage getEncodedMessage() {
        return encodedMessage;
    }

    public Session getDeviceSession() {
        return deviceSession;
    }
}
